package com.supreme.commonmongo.mapper;

import com.supreme.commonmongo.entity.MngLogger;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface MngLoggerMapper extends MongoRepository<MngLogger, String> {

    @Query("{'_id': ObjectId(?0)}")
    MngLogger getLoggerById(String id);
}
